package modele;

import java.util.Collection;
import java.util.TreeSet;

public class Dep implements Comparable <Dep> {
    private String num;
    private Collection <Med> lesMeds = new TreeSet <Med> ();
    
    public Dep(String num) {
        this.num = num;
    }

    public String getNum() {
        return num;
    }
    
    public int compareTo(Dep d) {
        return num.compareTo((d).num);
    }

    public Collection<Med> getLesMeds() {
        return lesMeds;
    }
    
    public void addMed(Med m) {
        lesMeds.add(m);
    }
}